package com.efast.dmom.mgmt.controller.mes;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.efast.dmom.mgmt.bean.mes.HomePageReportQueryBean;
import com.efast.dmom.mgmt.service.mes.HomePageReportQueryService;

/**
 * 
 * @author wj
 * 首页报表数据
 *
 */
@Controller
@RequestMapping("/homePageReport")
public class HomePageReportQueryController {
	
	@Autowired
	private HomePageReportQueryService homePageReportQueryService;
	
	//查询每周计划完成数量与实际完成数量
	@RequestMapping("/planAndActualCount")
	public @ResponseBody List<HomePageReportQueryBean> planAndActualCountQuery() {
		return homePageReportQueryService.planAndActualCountQuery();
	}
	
	//Top质量问题报表
	@RequestMapping("/topQualityProblemQuery")
	public @ResponseBody List<HomePageReportQueryBean> topQualityProblemQuery() {
		return homePageReportQueryService.topQualityProblemQuery();
	}
}
